class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :name
      t.string :password
      t.string :first_name
      t.string :surname
      t.date :date_of_birth
      t.string :telephone_number
      t.string :modile_number
      t.string :fax_number
      t.string :email
      t.string :creditcard_number
      t.string :street
      t.string :house_number
      t.string :house_number_addition
      t.string :city
      t.string :postalcode
      t.float :balance
      t.integer :gender
      t.boolean :is_guest
      t.boolean :is_admin

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
